<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 第K个语法符号 -->
    <script>
      var langer = function (n, k) {
        k--
        let res = 0
        while (k > 0) {
          k &= k - 1
          res ^= 1
        }
        return res
      }
      console.log(langer(1, 1))
    </script>
  </body>
</html>
